<style lang='scss' type='stylesheet/scss' scoped>
.as-input {
  margin-bottom: 10px;
}
</style>
<template>
  <as-card :text="text"
           title="v-model 绑定的是 as-option 中选中的 value">
    <as-select v-model="checkedCity" placeholder="请选择城市">
      <as-option v-for="item in ['北京','上海','天津']" :label="item" :key="item" :value="item"></as-option>
    </as-select>
  </as-card>
</template>

<script type="text/ecmascript-6">
import { mapGetters } from "vuex";
export default {
  name: "",
  computed: {
    ...mapGetters(["isMobile"])
  },
  data() {
    return {
      checkedCity: "",
      text: `<template>
   <as-select v-model="checkedCity" placeholder="请选择城市">
     <as-option v-for="item in ['北京','上海','天津']" :label="item" :key="item" :value="item"></as-option>
   </as-select>
 </template>
 <script>
 export default {
   data(){
     return {
       checkedCity: ""
     }
   }
 }
 <\/script>`
    };
  },
  methods: {}
};
</script>
